/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.mail.service.processor;

import info.peigen.hotpot.common.service.base.processor.Processor;
import info.peigen.hotpot.common.service.base.processor.ProcessorServiceContext;
import info.peigen.hotpot.component.mail.service.result.MailResult;
import org.noear.solon.annotation.Component;

/**
 * <b>(SendMailResultProcessor)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/1/20
 */
@SuppressWarnings("rawtypes")
@Component
public class SendMailResultProcessor extends AbstractMailServiceProcessor implements Processor {
    @Override
    public Integer level() {
        return 91;
    }

    @Override
    public void execute(ProcessorServiceContext serviceContext) {
        MailResult result = (MailResult) serviceContext.getResult();
        result.setSuccess();
    }
}